package com.citywithincity.db.interfaces;

import java.util.List;

import com.citywithincity.db.Page;

public interface EAr<T> extends Select<EAr<T>> {
	
	T get(Object id);
	T getOne();
	T get(Object id,boolean cacheResult);
	T getOne(boolean cacheResult);
	List<T> limit( int position, int pageSize);
	List<T> get();
	Page<T> position(Integer position,Integer pageSize);
	
	int insertOrUpdate(T data);
	int update(T data,boolean useCache);
	int update(T data);
	int insert(T data);
	int deleteById(Object id);
	int delete();
	int getRows();
	/**
	 * 只更新fitler指定的列
	 * @param value
	 * @param filter
	 */
	int update(T value, String filter);
	
}
